package mythink_1;

import java.util.Arrays;
import java.util.Iterator;
import java.util.Scanner;

public class ergodic_遍历 {

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//n个数 5
		int a[] = new int[n];
		for(int i = 0;i < n;i++) {
			a[i] = sc.nextInt();
		}//接受数据 3 5 6 1 4
	
		Arrays.sort(a);
		System.out.println("---------------");
		for(int o : a) {
			System.out.print(o+"  ");
		}
		System.out.println();
		
		//Iterator it = ; //迭代器？？？
		
		
		
		
		
		
		
		
	}

}
